Ext.define('NMC.view.MenuPrincipal', {
    extend: 'Ext.panel.Panel',
    autoShow : true,
    alias : 'widget.menuPrincipal',
    initComponent: function() {
        
        var logoutHandler = function(btn){
			self.location = './users/logout';
		};
        
        this.tbar = [
            '<b><big>NaMaCol</big></b>',
            {xtype: 'tbfill'},
            {text : 'Administration',iconCls: 'icon-cog'},
            {text : 'Référentiel',iconCls: 'icon-book'},
            {text : 'Collections',iconCls: 'icon-box_picture'},
            {xtype: 'tbfill'},
            {
                text:'Christophe',
                iconCls: 'icon-user',
                menu:[
                    {text :'Profil',iconCls: 'icon-user_go'},
                    {text : 'Déconnexion',iconCls : 'icon-stop',handler : logoutHandler}
                ]
             }
        ];
        this.callParent(arguments);
        
    }
    
    
});


